import requests from '@/utils/requests'
//获取购物车的商品列表
export const getCartList = () => requests.get('/cart/list')

//更新数据
export const updateCartList = (goodsId, goodsNum, goodsSkuId) => requests.post('/cart/update', {
    goodsId,
    goodsNum,
    goodsSkuId
})

//删除购物车的商品
export const delGoods = cartIds => requests.post('/cart/clear', {
    cartIds
})